<!DOCTYPE html>
<html lang="en">
<head>
    <meta charset="UTF-8">
    <title>登录</title>
    <link rel="stylesheet" href="./css/login.css">
</head>
<body>
    <div class="box log">
        <form class="log-form" action="./login.php" method="post">
            <h1>登录</h1>
            <p>
                <span>用户名:</span>
                <input type="text" name="username">
            </p>
            <p>
                <span>密&emsp;码:</span>
                <input type="password" name="pwd">
            </p>
            <p><span>角&emsp;色：</span>
                <label>
                    <input type="radio" name="role" value="1">管理员
                    <input type="radio" name="role" value="2">用户
                </label>
            </p>
            <p color="red"><?=setMsg($errMsg)?></p>
            <p>
                <input class="sub" type="submit" value="登录">
            </p>
            <p><span>还没账号？</span><a href="./register.php">立即注册</a></p>
        </form>
    </div>
</body>
</html>